﻿
using System;
using SqlSugar;
using Dora.Orm.Core.Domain.Entities;
namespace Dora.Services.AdminUser.Entities
{
    /// <summary>
    /// 环信消息历史记录表实体对象
    /// </summary>
    [SugarTable("hx_msg_history")]
    public class HxMsgHistoryEntity : Entity<Guid>
    {
        #region model


        /// <summary>
        /// 发送方系统Id
        /// </summary>
        public int FromSystemId { get; set; }

        /// <summary>
        /// 发送方用户Id
        /// </summary>
        public Guid FromUserId { get; set; }

        /// <summary>
        /// 发送方环信用户名
        /// </summary>
        public string FromHxUserName { get; set; }

        /// <summary>
        /// 发送方昵称
        /// </summary>
        public string FromNickName { get; set; }

        /// <summary>
        /// 发送方机构Id
        /// </summary>
        public int FromOrgId { get; set; }

        /// <summary>
        /// 发送方机构名称
        /// </summary>
        public string FromOrgName { get; set; }

        /// <summary>
        /// 发送方头像
        /// </summary>
        public string FromAvatar { get; set; }

        /// <summary>
        /// 环信消息Id
        /// </summary>
        public string HxMsgId { get; set; }

        /// <summary>
        /// 发送时间
        /// </summary>
        public DateTime SendTime { get; set; }

        /// <summary>
        /// 接收方系统Id
        /// </summary>
        public int ToSystemId { get; set; }

        /// <summary>
        /// 接收方用户Id
        /// </summary>
        public Guid ToUserId { get; set; }

        /// <summary>
        /// 接收方环信用户名
        /// </summary>
        public string ToHxUserName { get; set; }

        /// <summary>
        /// 接收方昵称
        /// </summary>
        public string ToNickName { get; set; }

        /// <summary>
        /// 接收方机构Id
        /// </summary>
        public int ToOrgId { get; set; }

        /// <summary>
        /// 接收方机构名称
        /// </summary>
        public string ToOrgName { get; set; }

        /// <summary>
        /// 接收方头像
        /// </summary>
        public string ToAvatar { get; set; }

        /// <summary>
        /// 聊天类型;环信的聊天类型
        /// </summary>
        public string ChatType { get; set; }

        /// <summary>
        /// 消息类型;环信的消息类型
        /// </summary>
        public string MsgType { get; set; }

        /// <summary>
        /// 消息内容
        /// </summary>
        public string MsgContent { get; set; }

        /// <summary>
        /// Json格式消息
        /// </summary>
        public string MsgJson { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public short IsDeleted { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get; set; }

        #endregion
        #region extend
        #endregion
    }
}
